package com.rm.zeyou.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 经纪人表
 * </p>
 *
 * @author YanYang
 * @since 2025-03-12 15:55:07
 */
@Getter
@Setter
@TableName("t_broker")
@ApiModel(value = "Broker对象", description = "经纪人表")
public class Broker implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("经纪人申请ID")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("技师ID")
    @TableField("tid")
    private Long tid;

    @ApiModelProperty("经纪人名")
    @TableField("broker_name")
    private String brokerName;

    @ApiModelProperty("经纪人手机号")
    @TableField("broker_tel")
    private String brokerTel;

    @ApiModelProperty("渠道名")
    @TableField("channel_type")
    private String channelType;

    @ApiModelProperty("经纪人邀请码")
    @TableField("broker_invitation_code")
    private String brokerInvitationCode;

    @ApiModelProperty("经纪人上级邀请码")
    @TableField("broker_invited_code")
    private String brokerInvitedCode;

    @ApiModelProperty("正常项目分成比例（%）")
    @TableField("split_rate")
    private BigDecimal splitRate;

    @ApiModelProperty("升级套餐分成比例（%）")
    @TableField("upgrade_split_rate")
    private BigDecimal upgradeSplitRate;

    @ApiModelProperty("第一次加钟分成比例（%）")
    @TableField("bell_first_split_rate")
    private BigDecimal bellFirstSplitRate;

    @ApiModelProperty("第二次加钟分成比例（%）")
    @TableField("bell_second_split_rate")
    private BigDecimal bellSecondSplitRate;

    @ApiModelProperty("逻辑删除（0=未删除，1=已删除）")
    @TableField("is_delete")
    @TableLogic
    private Integer isDelete;

    @ApiModelProperty("创建时间")
      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("更新时间")
      @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
